<?php
  $classes = array(
    'type-image',
    'normal column',
    'is'
  );

    $image_url =  get_post_meta(get_the_ID(), 'redox_image', true);

?>

<div id="post-<?php the_ID(); ?>" <?php post_class($classes); ?>>
    <div class="media">
        <?php   if($image_url!='') { 
                    echo '<a href="'.$image_url.'">';
                } 
                else { ?>
                    <a href="<?php the_permalink(); ?>">
        <?php   } 
                the_post_thumbnail('large'); ?>
        </a>
        <div class="info">
            <div class="date"><?php the_time('j M -y'); ?></div>
        </div>
        <div class="watermark"></div>
    </div>
</div>
